package dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import domain.Message;

@Repository
public interface MessageDAO {
	
	//写留言
	public Integer write(Message msg);

	//查询出所有留言 带分页
	public List<Message> listAll(@Param("currentPage") Integer startPage, @Param("pageSize") Integer pageSize);

	//删除留言
	public Integer delete(Long id);
}
